function OnSubmitForm(ap)
{
	if(document.pressed == 'Cancelar')
	{
		alert("Cancelar");
		document.myform.action ="insert.html";
	}
	else
		if(document.pressed == 'Crear')
	{
		alert("Guardar");
		document.myform.action ="/guardar_usuario_nuevo/";
		
	}
	return true;
}
function ApretasteCrear(frm){

	frm.action ="/guardar_usuario_nuevo/";
	frm.submit();
}
	
function Cancelaradmin(frm){
	frm.action ="/gestionar_usuarios/";	
	frm.submit();
}

function Cancelaruser(frm){
	frm.action="/gestioncuestionarios/";
	frm.submit();
}